<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">

<link href="css/style.css" rel="stylesheet" type="text/css" />
<title>我的桌面</title>
</head>
<style type="text/css">

body {
 background-image: url(./images/sys.jpg);
}

</style>
<body>
<div class="wel-zi">欢迎使用圣嘉尔后台管理系统</div>

<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="js/H-ui.js"></script>
<script>
	
$(function(){

	 $.ajax( {  
		     url:'/baby/sys/loginIndex',// 跳转到 action  
		     data:{},  
		    type:'get',  
		     cache:false,  
		     dataType:'json',  
		     success:function(data) { 
		         if(data.code =="5001" ){
					alert(data.message); 
					// window.parent.location.href='http://localhost:8080/baby/resource/admin/login.html'
					  window.parent.location.href='login.html'
	             	console.log(data);  
		         	 
		         }  
		      }, error : function() {      
		             // view("异常！");  
		          alert("error！");  
		     }  
		});

});
	

</script>
</body>
</html>